// ... existing code ...
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
// ... existing code ...
@Service
public class FileServiceImpl implements FileService {
    private static final Logger logger = LoggerFactory.getLogger(FileServiceImpl.class);
    @Resource
    private FileDao fileDao;
// ... existing code ...
    @Override
    public FileEntity getFileDetail(String fileId) {
        return fileDao.queryFileById(fileId);
    }

    @Override
    public boolean updateFileName(String fileId, String fileName) {
        try {
            fileDao.updateFileName(fileId, fileName);
            return true;
        } catch (Exception e) {
            logger.error("更新文件名失败", e);
            return false;
        }
    }
}